#include<stdio.h>
int main()
{
   int N,i;
   scanf("%d",&N);

   int countA=0,countB=0,countC=0,countD=0,countE=0;
    for(int a =0;a<N;a++)
   {
        scanf("%d",&i);
       if(i>=90&&i<=100)
       {
         countA++;
       }
        else if(i<90&&i>=80)
        {
          countB++;
        }
        else if(i<80&&i>=70)
        {
          countC++;
    
        }
          else if(i<70&&i>=60)
          {
             countD++;
           }
        else
        {
          countE++;
        
        }
    }
     printf("%d %d %d %d %d",countA,countB,countC,countD,countE);
  return 0;


}
